package resolver

// AuthSSLCert contains the necessary information of certificate
type AuthSSLCert struct {
	// CACertificate contains the name of the CACertificate this was fetched from
	CACertificate string `json:"caCertificate"`
}

// Equal tests for equality between two AuthSSLCert types
func (asslc1 *AuthSSLCert) Equal(assl2 *AuthSSLCert) bool {
	if asslc1 == assl2 {
		return true
	}
	if asslc1 == nil || assl2 == nil {
		return false
	}

	if asslc1.CACertificate != assl2.CACertificate {
		return false
	}

	return true
}
